import random

import pyperclip

N = 30
M = random.randint(1, 200)
nums = [str(random.randint(1, 1 << 8)) for _ in range(N)]
content = f"{N} {M}\n{' '.join(nums)}"
print(content)
pyperclip.copy(content)
